

import 'package:bt_tool/basic/bt_controller.dart';
import 'package:bt_tool/widget/bt_text_field.dart';
import 'package:bt_tool/widget/bt_widget.dart';
import 'package:flutter/cupertino.dart';

import 'json_preview_main_controller.dart';

class JsonPreviewMainPage extends BTStatefulWidget{
  const JsonPreviewMainPage({super.key,super.routerConfig});
  @override
  State<StatefulWidget> createState() {
    return JsonPreviewMainPageState();
  }
}

class JsonPreviewMainPageState extends BTState<JsonPreviewMainPage> {

  final JsonPreviewMainController controller = JsonPreviewMainController();

  @override
  BTController btCtrl() {
    return controller;
  }

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        Flexible(
          child: BTTextFieldWidget(
            btTextFieldController: controller.textFieldController,
            maxLine: 10000,
          ),
        ),
        Flexible(child: ListView())
      ],
    );
  }

}